home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Enigma Amiga CD
/
Programmi
/
Ital20.lha
/
ital20
/
arexx
/
ItalShellE.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-05-24
|
3KB
|
105 lines
/*
*
*
#####################################
# ItalSHELL #
# AREXX Words Translator for ITAL #
# Written by: Andrea Modenese #
# SysOp of: ToTaLLy WiReD #
# +39-41-5269419 12:00 > 24:00 #
# Fido: 2:333/714 AmigaNet 39:101/8 #
#####################################
*
* Di Andrea Modenese (25.8.94).
*
* This is a very simple Arexx script to translate a word or a sentence
* from a Shell, from English to Italian.
* First of all, you must get rexx.server running, so if you didn't do
* yet, please execute RexxMast. Also make sure that Ital has opened
* its Arexx port. Then open a Shell and type the command 'rx ItalShell';
* (I suggest you to copy this script in you own 'REXX' directory).
* If all works properly, you will be able to enter an english word or
* sentence and get the translation by Ital.
*
*
* The following modifications were made by Arturo Ortino for Ital 2.0
* on 15.12.94:
*
* (I removed 'NOREQ' for it was superflous in
* the new version of Ital. Moreover, I substituted
* 'parse pull word$' for 'pull word$' to enter the
* input line/sentences to be translated.
*
* NOTE.1: Always adopt a correct punctation when you insert a
* sentence to be translated. If possible, insert a
* punctation mark in the end of the sentence; for example,
* try to insert the following sentences WITH and WITHOUT
* the ending full stop:
*
* 1) I love you.
* 2) My trouble.
*
*
* NOTE.2: To finish, enter a blank line, that is, hit ENTER.
*
*/
options results
/*
* IMPORTANT : Put _your_ path in the following line to execute ITAL !!
*/
ITAL = "Work:Inglese/Varie/ITAL"
$VER = v.035 (25.8.94)
if ~show('P','ITAL') then
DO
address command ITAL
address command "waitforport ITAL"
END
address 'ITAL'
say '+----------------------------------+'
say ' ItalShell - AREXX Word Translator!'
say '+----------------------------------+'
say ' [RETURN] to exit'
say
TRANSLATE:
options prompt '> Sentence to translate? ';parse pull word$
say ''
if word$ = '' then signal OUT
else do
say 'Wait please: 'word$
call open out,'T:word.tmp',write
call writeln out,word$
call close out
'CLEAR'
't:word.tmp'
say
say "Here is a translation..."
say
address command "type t:word.tmp.tra"
address command 'delete >NIL: t:word.tmp'
address command 'delete >NIL: t:word.tmp.tra'
say
end
signal translate
OUT:
'QUIT'
say 'ItalShell '$Ver '...Byeeeeee!'
exit